|
Расположение в меню |
---|
Деталь → Создать примитивы... → Призма |
Верстаки |
Part(Деталь), OpenSCAD |
Быстрые клавиши |
Нет |
Представлено в версии |
0.14 |
См. также |
Примитивы, Куб |
Призма - это твёрдое тело, определяемое поперечным сечением правильного многоугольника и высотой.
See Part Primitives.
A Part Prism object created with the scripting example below is shown here.
See also: Property editor.
A Part Prism object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Attachment
The object has the same attachment properties as a Part Part2DObject.
Prism
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Prism can be created with the addObject()
method of the document:
prism = FreeCAD.ActiveDocument.addObject("Part::Prism", "myPrism")
"myPrism"
is the name for the object.Example:
import FreeCAD as App
doc = App.activeDocument()
prism = doc.addObject("Part::Prism", "myPrism")
prism.Polygon = 5
prism.Circumradius = 10
prism.Height = 50
prism.FirstAngle = 22.5
prism.SecondAngle = 45
prism.Placement = App.Placement(App.Vector(1, 2, 3), App.Rotation(60, 75, 30))
doc.recompute()